#define _CRT_SECURE_NO_WARNINGS
#include"byy.h"
int main() 
{
	int  m;
	scanf("%d",&m);
	printf("%d ",m/100);
	printf("%d ", (m % 100) / 10);
	printf("%d ",m%10);
		return 0;
}